<template>
    <div class="bargin-card">
        <img :src="bargin.pic" alt="">
        <div class="bargin-detail">
            <section>
                <h3 v-html="bargin.name"></h3>
                <p>{{bargin.characteristic}}</p>
            </section>
            <div>
                <section>
                    <span class="price">￥{{bargin.minPrice}}</span><span class="min-price">底价</span>
                </section>
                <section>
                    <span>￥{{bargin.originalPrice}}</span><span>原价</span>
                </section>
                <section>
                    <span>{{bargin.stores}}件</span><span>限量</span>
                </section>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    props: {
        bargin: Object
    }
}
</script>
<style lang="scss" scoped>
    .bargin-card {
        background-color: #fff;
        display: flex;
        padding: 14px;
        border-top: 1px solid #eee;
        img {
            width: 226px;
            height: 226px;
            border-radius: 18px;
            flex-shrink: 0;
        }
        .bargin-detail {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            margin-left: 20px;
            h3 {
                font-size: 30px;
            }
            p {
                font-size: 26px;
                color: #888;
                margin-top: 20px;
            }
            div {
                display: flex;
                font-size: 26px;
                section {
                    display: flex;
                    height: 80px;
                    flex-direction: column;
                    justify-content: space-between;
                    align-items: center;
                    margin-right: 80px;
                    color: #888;
                    .price {
                        color: #d00;
                        font-weight: bold;
                    }
                    .min-price {
                        color: #333;
                    }

                }
            }
        }
    }
</style>